const mongoose = require('mongoose');

const routeSchema = new mongoose.Schema({
  title: String,
  tourName: String,
  routeDesc: String,
  startAdress: String,
  endAdress: String,
  time: String,
  price: String,
  imgSrc: String,
  createTime: {
    type: Date,
    default: Date.now
  }
})

const routeModel = mongoose.model('route',routeSchema)

module.exports = routeModel